#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<ctime>
using namespace std;
class Date
{
public:
	Date(int year = 1999, int month = 9, int day = 6)
		:_year(year),
		_month(month),
		_day(day)
	{
		cout << "InitList or Default List" << endl;
	}
	Date(const Date& d)
	{
		this->_day = d._day;
		this->_month = d._month;
		this->_year = d._year;
	}
	~Date()
	{
		cout << "~Date" << endl;
		_year = 1;
		_month = 1;
		_day = 1;
		
	}
	class Time
	{
	public:
		Time()
		{
			std::time_t now = std::time(nullptr);
			cout << now << endl;
		}
	};
private:
	int _year = 2023;
	int _month = 11;
	int _day = 3;
};
int main()
{
	Date d1;//(2023,11,2);
	Date d2(d1);
	Date::Time();
	return 0;
}